
body{
  background: #2b3f58;
}
//容器布局
.com-container {
  position: absolute;
  left: 140px;
  top: 60px;
  right: 0;
  bottom: 0;
  overflow: auto;
  background: $main-bg;
}

.com-page {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  top: 50px;
  bottom: 50px;
}

.com-layout {
  width: 100%;
  height: 100%;
  bottom: 0px;
  top: 0px;
  position: absolute;
  padding: 0 310px;
  .panel-left, .panel-right {
    width: 280px;
  }
  @include respond-to(lg) {
    padding: 0 250px;
    .panel-left, .panel-right {
      width: 230px;
    }
  }

}

.com-layout-top {
  height: 60px;
  padding: 0 $baseWid;
  .btn-line {
    margin-right: 1em;
  }
  h3 {
    color: $primary-color;
    font-size: 20px;
  }
  .iconfont {
    font-size: 20px;
    margin-right: 2px;
    position: relative;
    top: 3px;
  }
  .fr {
    margin-top: 10px;
  }
}

.com-panel {
  border: $border-style;
  top: 0;
  bottom: 0;
  height: 100%;
  background: #fff;
  .content {
    height: 100%;
    overflow-y: auto;
  }
  .panel-tit {
    line-height: 48px;
    height: 48px;
    padding: 0 10px;
    background: #fafbfd;
    border-bottom: $border-style;
    .tab-tit {
      margin: 0 -10px;
    }

    .com-btn {
      margin-top: 5px;
    }
  }

  .panel-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    border-top: $border-style;
    padding: $baseWid;
    .com-btn {
      border-radius: 0;
      width: 100px;
    }
  }
  .panel-content {
    height: calc(100% - 88px);
    position: relative;
    //overflow: hidden;
  }
  &.panel-left {
    position: absolute;
    left: $baseWid;

  }
  &.panel-right {
    position: absolute;
    right: $baseWid;
  }
  &.panel-center {
    position: relative;
    .panel-tit {
      padding: 0 1em;
      .fl {
        @include ellipsis(60%);
      }
    }

  }
}

//分页
.com-pagination {
  font-size: 0;
  margin-top: 20px;
  .btn-prev,
  .btn-next,
  .btn-num {
    width: 28px;
    height: 28px;
    border: 1px solid;
    line-height: 28px;
    text-align: center;
    display: inline-block;
  }
  .btn-prev,
  .btn-next {
    border-color: #a0a0a0;
    font-size: 16px;
    font-family: serif;
    font-weight: bold;
    &:hover {
      color: $primary-color;
      border-color: $primary-color;
    }
  }
  .btn-prev {
    margin-right: 9px;
  }
  .btn-next {
    margin-left: 9px;
  }
  .btn-num {
    font-size: 14px;
    border-color: #e5e5e5;
    &.on,
    &:hover {
      color: #fff;
      background: #a7bbcb;
    }
  }
  .pagination-dot {
    margin: 0 10px;
    font-size: 16px;
    font-weight: bold;
  }
  .jump-con {
    display: inline-block;
    margin-left: 40px;
    p {
      font-size: 14px;
      color: #999;
      display: inline-block;
    }
    input {
      margin: 0 2px;
      border: 0;
      border-bottom: 1px solid #999;
      text-align: center;
      font-size: 14px;
      outline: none;
      width: 40px;
      background: none;
      color: #999;
    }
  }
  .btn-jump {
    margin-left: 30px;
    width: 88px;
    height: 28px;
    display: inline-block;
    border: 1px solid $primary-color;
    color: $primary-color;
    font-size: 14px;
    text-align: center;
    line-height: 28px;
    border-radius: 14px;
    &:hover {
      color: #fff;
      background: $primary-color;
    }
  }
}

//按钮
.com-btn {
  @include inline-block();
  line-height: 32px;
  padding: 2px 1em;
  border-radius: 5px;
  min-width: 80px;
  text-align: center;
  &.btn-primary {
    color: #fff;
    background: $primary-color;
  }
  &.btn-primary-reversal {
    color: $primary-color;
    border: 1px solid $primary-color;
  }
  &.btn-warn {
    color: #fff;
    background: $orange;
    border: 1px solid $orange;
  }
  &.btn-gray {
    color: #fff;
    background: #acbfce;
    border: 1px solid #acbfce;
  }
  &.btn-warn-reversal {
    color: $orange;
    border: 1px solid $orange;
  }
}

.com-search {
  position: relative;
  height: 28px;
  .search-btn {
    position: absolute;
    top: 5px;
    right: 14px;
    @include bgurl('sprites-icon.png');
    background-position:  -6px -37px;
    width: 19px;
    height: 19px;
  }
  input {
    height: 28px;
    width: 100%;
    padding: 0 40px 0 10px;
    border: 0;
    border: $border-style;
    outline: none;
  }
}

//tab切换
.com-tab {
  .tab-tit-icon {
    text-align: center;
    border: 1px solid #59baf5;
    width: 102px;
    height: 28px;
    margin: 9px auto;
    line-height: 26px;
    overflow: hidden;
    border-radius: 15px;
    background: #fafbfd;
    li {
      float: left;
      width: 50px;
      cursor: pointer;
      &.on {
        background: #59baf5;
        .ico-pc {
          background-position: 0 -34px;
        }
        .ico-mobile {
          background-position: 0 0;
        }
      }
    }
  }
  .tab-tit {
    li {
      text-align: center;
      float: left;
      cursor: pointer;
      border-right: $border-style;
      position: relative;
      &:last-child {
        border-right: 0px;
      }
      &.on {
        background: #fff;
        color: $primary-color;
        &:after {
          content: '';
          width: 100%;
          border-top: 2px solid $primary-color;
          top: 0;
          position: absolute;
          left: 0;
        }
      }
    }
    &.tab-half {
      li {
        width: 50%;
      }
    }
    &.tab-three{
      li{
        width: 33.33%;
      }
    }

  }
  .tab-content {
    .content {
      display: none;
      &.on {
        display: block;
      }
    }
  }
}

.com-top-tab {
  background: #fff;
  border-bottom: $border-style;
  li {
    height: 38px;
    float: left;
    &.on {
      a {
        background: #f3f4f8;
        color: $primary-color;
        height: 39px;
      }
    }
  }
  a {
    display: block;
    width: 138px;
    height: 38px;
    border-right: $border-style;
    line-height: 38px;
    color: #666;
    text-align: center;
  }
}

//表单迁移
.removal {
  .removal-top {
    position: relative;
    margin-top: 34px;
    .com-steps {
      margin: 0 150px 0 310px;
      border: $border-style;
      border-top: 0;
      border-bottom: 0;
    }
    .avatar,
    .next-con {
      position: absolute;
      top: 0;
    }
    .avatar {
      left: 0;
      margin-left: 54px;
      img {
        width: 78px;
        height: 78px;
        border-radius: 50%;
      }
    }
    .avatar-word {
      display: inline-block;
      font-size: 12px;
      color: #333;
      margin: 24px 0 0 24px;
    }
    .next-con {
      right: 0;
      width: 150px;
      .com-btn {
        margin: 30px 0 0 30px;
        width: 80px;
      }
    }
  }
  .com-steps {
    text-align: center;
    .steps-wrapper {
      display: inline-block;
    }
    li {
      float: left;
      width: 290px;
      text-align: center;
      position: relative;
      &:after {
        position: absolute;
        left: 0;
        right: 0;
        top: 33px;
        height: 3px;
        background: #59baf5;
        content: '';
      }
    }
    h3 {
      font-size: 14px;
      color: #59baf5;
    }
    .dot {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #59baf5;
      color: #fff;
      font-size: 14px;
      margin: 2px auto 4px;
      position: relative;
      z-index: 1;
    }
    .desc {
      width: 200px;
      margin: 0 auto;
    }
  }
  .add-new-removal {
    position: absolute;
    left: 50%;
    top: 33%;
    width: 650px;
    min-height: 270px;
    padding-top: 65px;
    margin: 0 0 0 -325px;
    background: #fff;
    border: $border-style;
    & > div {
      margin: 0 0 24px 70px;
    }
    label {
      font-size: 14px;
      color: #666;
      vertical-align: middle;
      margin-right: 13px;
      span {
        color: #f00;
        vertical-align: middle;
      }
    }
    input,
    select {
      outline: none;
      border: $border-style;
      border-radius: 4px;
      height: 38px;
      line-height: 38px;
      width: 350px;
      padding: 0 10px;
      font-size: 14px;
      color: #333;
    }
    .setting {
      min-width: 0;
      padding: 0;
      width: 60px;
      margin-left: 13px;
    }
    .submit {
      margin-left: 150px;
      width: 352px;
      padding: 0;
      height: 40px;
      line-height: 40px;
    }
  }
  @include respond-to(lg) {
    .com-steps {
      li {
        width: 200px;
      }
      .desc {
        width: 170px;
      }
    }
    .removal-top {
      .avatar {
        margin-left: 20px;
      }
      .com-steps {
        margin-left: 270px;
      }
    }
  }
}

//预览表单
.ui-mobile {
  width: 320px;
  height: 100%;
  position: relative;
  margin: 0 auto;
  .ui-header {
    @include bgurl('moblie-header.png');
    background-position: top center;
    min-height: 60px;
    h3 {
      text-align: center;
      padding-top: 76px;
      margin: 0 auto;
      @include ellipsis(200px);
      color: #fff;
    }
    p {
      line-height: 22px;
      padding: 0 20px;
      margin: 10px auto 0;
      overflow: hidden;
      font-size: 12px;
      color: #999;
    }
  }
  .ui-footer {
    @include bgurl('moblie-footer.png');
    background-position: center bottom;


    height: 61px;
    width: 100%;

  }
  .ui-form {
    height: calc(100% - 200px);
    @include bgurl('moblie-center.png');
    background-color: #f3f4f8;
    background-repeat: repeat-y;


  }
}

//预览页面
.preview {
  height: 100%;
  overflow: hidden;
  .com-tab {
    height: 100%;
  }
  .tab-content {
    height: 96%;
  }
  .ui-pc {
    overflow: hidden;
    width: 700px;
    border: $border-style;
  }
}

//版本管理列表
.manage {
  .com-layout {
    padding-right: 15px;
    top: 143px;
    height: auto;
    bottom: 90px;
  }

}

//版本管理预览
.version {
  .com-layout{
    height: auto;
    bottom: 50px;
  }
  .panel-tit{
    overflow: hidden;
  }
  .version-num-list {
    a {
      display: block;
      line-height: 32px;
      text-align: center;
      font-size: 12px;
      color: #333;
      border-bottom: $border-style;
      &:hover {
        background: $primary-color;
        color: #fff;
      }
    }
  }
  .version-info-main {
    margin: 20px;
    .table {
      table {
        width: 100%;
      }
      td {
        height: 48px;
        text-align: center;
        border: $border-style;
        font-size: 12px;
        color: #333;
      }
    }
    .edit-log {
      h4 {
        margin: 26px 0 20px;
        color: #333;
      }
      li {
        padding: 0 0 20px 20px;
        border-left: 1px dashed #e5e5e5;
        position: relative;
        margin-left: 5px;
        &:before {
          border-radius: 50%;
          background: $primary-color;
          width: 10px;
          height: 10px;
          position: absolute;
          left: -5px;
          top: -2px;
          content: '';
        }
        &:last-child {
          border-left: 1px solid transparent;
        }
      }
      .time,
      .author {
        font-size: 12px;
        line-height: 1;
      }
      .time {
        float: left;
        color: #333;
        margin-bottom: 15px;
      }
      .author {
        color: #666;
        float: right;
      }
      .log-word {
        font-size: 12px;
        color: #333;
      }
      .show-more {
        display: block;
        width: 70px;
        margin-top: 5px;
        height: 20px;
        font-size: 12px;
        color: #59baf5;
        background: #f3f4f8;
        text-align: center;
        line-height: 20px;
        &:hover {
          background: darken(#f3f4f8, 5%);
        }
      }
    }
  }
  .com-layout {
    top: 60px;
  }
  .tab-content {
    height: 90%;
    overflow: hidden;
  }
  .ui-pc .ui-form{
    height: calc(100% - 100px) !important;
    overflow-y: auto;
    overflow-x:hidden;
  }
  .content {
    overflow: hidden;
  }
}

.ui-mobile {
  margin-top: 30px;
  .ui-form {
    height: calc(100% - 260px);
  }
}

.ui-pc {
  border: 0;
  width: 100%;
  .ui-form {
    height: calc(100% - 170px) !important;
  }

}

//表单设计布局
.fd {
  .com-layout {
    top: 60px;
    height: auto;
  }
  .panel-content {
    height: calc(100% - 115px);
  }
  .view {
    width: 100%;
    height: 100%;
    position: relative;
    overflow-y: auto;
  }
  .default-main {
    @include align-center(260px, 120px);
    color: #999;
    .default-ico {
      display: block;
      margin: 0 auto 20px;
      width: 180px;
      height: 62px;
      @include bgurl('view-default.png');
      background-position: center;
    }
    p{
      text-align: center;
    }
  }
}

@media screen and (max-width: 1024px) {
  body, html {
    width: 1024px;
    overflow-x: auto;
  }
  .com-container {
    width: 920px;
    right: auto;
  }

}


